package com.bite.messageQueue.common;

import java.io.Serializable;

/**
 * 表示方法的公共参数和字段
 */
public class BasicArguments implements Serializable {
    //表示请求响应的标识
    protected String rid;
    //这次通信使用的channel的标识
    protected String channelId;

    public BasicArguments() {
    }

    public BasicArguments(String rid, String channelId) {
        this.rid = rid;
        this.channelId = channelId;
    }

    /**
     * 获取
     * @return rid
     */
    public String getRid() {
        return rid;
    }

    /**
     * 设置
     * @param rid
     */
    public void setRid(String rid) {
        this.rid = rid;
    }

    /**
     * 获取
     * @return channelId
     */
    public String getChannelId() {
        return channelId;
    }

    /**
     * 设置
     * @param channelId
     */
    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String toString() {
        return "BasicArguments{rid = " + rid + ", channelId = " + channelId + "}";
    }
}
